 <%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<jsp:include flush="true" page="../header.jsp"></jsp:include>

<div id="main">
	<div class="t3" style="margin: 8px auto">
		<table width="100%" cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td>
					<strong class="fl w"> <img
							src="images/yellow/index/home_menu.gif" align="absmiddle"
							id="td_cate" onMouseOver="read.open('menu_cate','td_cate');"
							style="cursor: pointer;" /> <s:url action="list_category"
							id="url">
						</s:url> <a href="${url}">经验库</a> &raquo; <s:url
							action="list_board" id="url">
						</s:url> <a href="${url}">热门贴</a> </strong>
				</td>
			</tr>
		</table>
	</div>

	<div class="t z" style="margin: 3px auto">
		<table cellspacing="0" cellpadding="0" width="100%" id="ajaxtable">
			<tr>
				<th class="h" colspan="7">
				    热门帖
				</th>
			</tr>
			<tbody style="table-layout: fixed;">
				<tr></tr>
				<tr class="tr2">
					<td width="*" colspan="2" class="tac">
					帖子
				</td>
				<td class="tal y-style e" style="width: 15%">
					论坛
				</td>
				<td class="tal y-style e" style="width: 15%">
					回帖
				</td>
				<td class="tal y-style f" style="width: 10%">
					版主
				</td>
					<td style="width: 6%" class="y-style">
						人气
					</td>
				
					<td style="width: 15%" class="y-style">
						最后回复
					</td>
					</tr>
				<c:forEach var="thread" items="${ hotList }">
				<tr class="tr3 f_one">
					<td class="icon tac" width="45">
						<s:url action="list_thread" id="url">
							<s:param name="thread.id">${thread.id }</s:param>
						</s:url>
						<a href="${url}"><img src="images/yellow/new.gif" /> </a>
					</td>
					<td>
						<s:url action="list_thread" id="url">
							<s:param name="thread.id">${thread.id }</s:param>
						</s:url>
						<a href="${url}" class="cfont">${ thread.title }</a>
					</td>
					<td class="tal y-style e"> 
					${ thread.board.name}
					</td>
                  <td class="tal y-style e"> 
					${ thread.replyCount}
					</td>
					<td class="y-style"
						style="word-break: keep-all; word-wrap: no-wrap">
							<s:url action="view_person" id="url" namespace="/system">
								<s:param name="person.id">${ thread.author.id }</s:param>
							</s:url>
							<a href="${url}">${ thread.author.name}</a>
						&nbsp;
					</td>
					 <td class="tal y-style e"> 
					${ thread.hit}
					</td>
					<td class="tal y-style">
							&nbsp;
							<c:if test="${ thread.authorLastReplied != null }">
								<s:url action="view_person" id="url" namespace="/system">
									<s:param name="person.id">${ thread.authorLastReplied.id }</s:param>
								</s:url>
								<a href="${url}" class="bl">${
									thread.authorLastReplied.name }</a>
								<div class="f10">
								<fmt:formatDate value="${thread.dateLastReplied }" pattern="yyyy-MM-dd HH:mm:ss" />
								</div>
							</c:if>
						</td>
				</tr>
			</c:forEach>
				<tr>
					<td colspan="6" class="f_one" style="height: 8px"></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>


<jsp:include flush="true" page="../footer.jsp" />
